﻿using System;
using Pay.DTO;

namespace Pay.IService {
	public interface IShopService {
		shop_dto Get(long id);
		shop_dto GetByMerchant(long merchant_id);
		shop_dto GetByMerchantNo(string bind_no);
		/// <summary>
		/// 增加
		/// </summary>
		/// <param name="dto"></param>
		/// <returns></returns>
		int Add(shop_dto dto);
		/// <summary>
		/// 更新
		/// </summary>
		/// <param name="dto"></param>
		/// <returns></returns>
		int Update(shop_dto dto);
		/// <summary>
		/// 新增或修改
		/// </summary>
		/// <param name="dto"></param>
		/// <returns></returns>
		ApiResultMessage Save(shop_model dto);
		/// <summary>
		/// 删除
		/// </summary>
		/// <param name="id"></param>
		/// <returns></returns>
		int Delete(long id);
	}
}
